package com.siyuan.sns.boss.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.siyuan.sns.boss.dao.BossDao;
import com.siyuan.sns.boss.domain.entity.Boss;
import com.siyuan.sns.boss.service.BossService;

@Transactional
@Service("bossService")
public class BossServiceImpl implements BossService {
	private BossDao bossDao;

	public void setBossDao(BossDao bossDao) {
		this.bossDao = bossDao;
	}

	@Override
	public Boss findByUsername(String username) {
		return this.bossDao.findByUsername(username);
	}
}
